package com.itheima.genericity;

public class genericityTest01 {
    public static void main(String[] args) {
        getGenterImpl<Integer> getGenter=new getGenterImpl<>();
        getGenter.method(1);
        getGenterImpl1 getGenterImpl1=new getGenterImpl1();
        getGenterImpl1.method("asdfs");
    }
}
class getGenterImpl<T> implements getGenter<T>{
    @Override
    public void method(T t) {
        System.out.println(t);
    }
}
class getGenterImpl1<String> implements getGenter<String>{
    @Override
    public void method(String string) {
        System.out.println(string);
    }
}
interface  getGenter<T>{
    public abstract void method(T t);
}